package pokerantani.v2.linematchers;

import java.util.regex.Pattern;

import pokerantani.v2.LineMatcher;
import pokerantani.v2.RE;


public class ActChat extends LineMatcher {
	static final Pattern pActChat = Pattern.compile("(" + RE.PLAYER + ") said, \"([^\"]+)\"");

	public String playerName;
	public String message;
	
	public boolean match(String line) {
		if(match(line, pActChat)) {
			playerName = group(1);
			message = group(2);
			return true;
		}
		return false;
	}
}
